﻿using System;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.Mvc;

using KamLib.Web.MVC;


namespace KamLib.Web.Bootstrap
{


    public static class BootstrapTextHelper
    {

        #region Labels

        public static MvcText Label(this MvcText me, string text)
        {
            me.Value += @" <span class=""label"">" + text + "</span>";
            return me;
        }
        public static MvcText Label(this string me, string text)
        {
            return new MvcText(me).Label(text);
        }

        public static MvcText LabelImportant(this MvcText me, string text)
        {
            me.Value += @" <span class=""label label-important"">" + text + "</span>";
            return me;
        }
        public static MvcText LabelImportant(this string me, string text)
        {
            return new MvcText(me).LabelImportant(text);
        }

        public static MvcText LabelInfo(this MvcText me, string text)
        {
            me.Value += @" <span class=""label label-info"">" + text + "</span>";
            return me;
        }
        public static MvcText LabelInfo(this string me, string text)
        {
            return new MvcText(me).LabelInfo(text);
        }

        public static MvcText LabelInverse(this MvcText me, string text)
        {
            me.Value += @" <span class=""label label-inverse"">" + text + "</span>";
            return me;
        }
        public static MvcText LabelInverse(this string me, string text)
        {
            return new MvcText(me).LabelInverse(text);
        }

        public static MvcText LabelWarning(this MvcText me, string text)
        {
            me.Value += @" <span class=""label label-warning"">" + text + "</span>";
            return me;
        }
        public static MvcText LabelWarning(this string me, string text)
        {
            return new MvcText(me).LabelWarning(text);
        }

        public static MvcText LabelSuccess(this MvcText me, string text)
        {
            me.Value += @" <span class=""label label-success"">" + text + "</span>";
            return me;
        }
        public static MvcText LabelSuccess(this string me, string text)
        {
            return new MvcText(me).LabelSuccess(text);
        }

        #endregion


        #region Banges

        public static MvcText Bange(this MvcText me, string text)
        {
            me.Value += @" <span class=""bange"">" + text + "</span>";
            return me;
        }
        public static MvcText Bange(this string me, string text)
        {
            return new MvcText(me).Bange(text);
        }

        public static MvcText BangeImportant(this MvcText me, string text)
        {
            me.Value += @" <span class=""bange bange-important"">" + text + "</span>";
            return me;
        }
        public static MvcText BangeImportant(this string me, string text)
        {
            return new MvcText(me).BangeImportant(text);
        }

        public static MvcText BangeInfo(this MvcText me, string text)
        {
            me.Value += @" <span class=""bange bange-info"">" + text + "</span>";
            return me;
        }
        public static MvcText BangeInfo(this string me, string text)
        {
            return new MvcText(me).BangeInfo(text);
        }

        public static MvcText BangeInverse(this MvcText me, string text)
        {
            me.Value += @" <span class=""bange bange-inverse"">" + text + "</span>";
            return me;
        }
        public static MvcText BangeInverse(this string me, string text)
        {
            return new MvcText(me).BangeInverse(text);
        }

        public static MvcText BangeWarning(this MvcText me, string text)
        {
            me.Value += @" <span class=""bange bange-warning"">" + text + "</span>";
            return me;
        }
        public static MvcText BangeWarning(this string me, string text)
        {
            return new MvcText(me).BangeWarning(text);
        }

        public static MvcText BangeSuccess(this MvcText me, string text)
        {
            me.Value += @" <span class=""bange bange-success"">" + text + "</span>";
            return me;
        }
        public static MvcText BangeSuccess(this string me, string text)
        {
            return new MvcText(me).BangeSuccess(text);
        }

        #endregion

    }


}
